﻿#ifndef ADDTYPEDIALOG_H
#define ADDTYPEDIALOG_H

#include <QDialog>
#include "dbtools.h"

namespace Ui {
class AddTypeDialog;
}

class AddTypeDialog : public QDialog
{
    Q_OBJECT

public:
    explicit AddTypeDialog(QString id,Dbtools *dbtools, QWidget *parent = nullptr);
    ~AddTypeDialog();

private slots:
    void on_ok_pushButton_clicked();

    void on_cancel_pushButton_clicked();

signals:
    void saveNewType(QString tname,QString tid,QString ticon);

private:
    Ui::AddTypeDialog *ui;

    QString id;
    QString name;
    QString icon;

    void initAllIcon();
};

#endif // ADDTYPEDIALOG_H
